#include<stdio.h>
#include<unistd.h>
int main()
{
    int rate=0;
    char bar[101] = {0};

    while(rate <= 100)
    {
        printf("[%-100s]\r", bar);
        fflush(stdout);
        usleep(1000*10);
        bar[rate++] = '#';
    }
    printf("\n");
    return 0;
}
